package jay;


import java.net.InetAddress;
import java.net.UnknownHostException;

public class h4 {

	public static void main(String[] args) throws UnknownHostException {

		InetAddress[] ips = InetAddress.getAllByName("www.qq.com");
		for (InetAddress ip : ips) {
			System.out.println(ip.toString());
			System.out.println("Address:" + ip.getHostAddress());
			System.out.println("Name:" + ip.getHostName());
		}
	}
}